package com.onedec.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class OnedecAttendanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecAttendanceExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andAttIdIsNull() {
            addCriterion("att_id is null");
            return (Criteria) this;
        }

        public Criteria andAttIdIsNotNull() {
            addCriterion("att_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttIdEqualTo(Integer value) {
            addCriterion("att_id =", value, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdNotEqualTo(Integer value) {
            addCriterion("att_id <>", value, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdGreaterThan(Integer value) {
            addCriterion("att_id >", value, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("att_id >=", value, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdLessThan(Integer value) {
            addCriterion("att_id <", value, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdLessThanOrEqualTo(Integer value) {
            addCriterion("att_id <=", value, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdIn(List<Integer> values) {
            addCriterion("att_id in", values, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdNotIn(List<Integer> values) {
            addCriterion("att_id not in", values, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdBetween(Integer value1, Integer value2) {
            addCriterion("att_id between", value1, value2, "attId");
            return (Criteria) this;
        }

        public Criteria andAttIdNotBetween(Integer value1, Integer value2) {
            addCriterion("att_id not between", value1, value2, "attId");
            return (Criteria) this;
        }

        public Criteria andAttDateIsNull() {
            addCriterion("att_date is null");
            return (Criteria) this;
        }

        public Criteria andAttDateIsNotNull() {
            addCriterion("att_date is not null");
            return (Criteria) this;
        }

        public Criteria andAttDateEqualTo(Date value) {
            addCriterionForJDBCDate("att_date =", value, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("att_date <>", value, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateGreaterThan(Date value) {
            addCriterionForJDBCDate("att_date >", value, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("att_date >=", value, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateLessThan(Date value) {
            addCriterionForJDBCDate("att_date <", value, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("att_date <=", value, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateIn(List<Date> values) {
            addCriterionForJDBCDate("att_date in", values, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("att_date not in", values, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("att_date between", value1, value2, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("att_date not between", value1, value2, "attDate");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdIsNull() {
            addCriterion("att_attgroup_id is null");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdIsNotNull() {
            addCriterion("att_attgroup_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdEqualTo(Integer value) {
            addCriterion("att_attgroup_id =", value, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdNotEqualTo(Integer value) {
            addCriterion("att_attgroup_id <>", value, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdGreaterThan(Integer value) {
            addCriterion("att_attgroup_id >", value, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("att_attgroup_id >=", value, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdLessThan(Integer value) {
            addCriterion("att_attgroup_id <", value, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("att_attgroup_id <=", value, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdIn(List<Integer> values) {
            addCriterion("att_attgroup_id in", values, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdNotIn(List<Integer> values) {
            addCriterion("att_attgroup_id not in", values, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdBetween(Integer value1, Integer value2) {
            addCriterion("att_attgroup_id between", value1, value2, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttAttgroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("att_attgroup_id not between", value1, value2, "attAttgroupId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdIsNull() {
            addCriterion("att_emp_id is null");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdIsNotNull() {
            addCriterion("att_emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdEqualTo(Integer value) {
            addCriterion("att_emp_id =", value, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdNotEqualTo(Integer value) {
            addCriterion("att_emp_id <>", value, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdGreaterThan(Integer value) {
            addCriterion("att_emp_id >", value, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("att_emp_id >=", value, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdLessThan(Integer value) {
            addCriterion("att_emp_id <", value, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("att_emp_id <=", value, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdIn(List<Integer> values) {
            addCriterion("att_emp_id in", values, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdNotIn(List<Integer> values) {
            addCriterion("att_emp_id not in", values, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("att_emp_id between", value1, value2, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("att_emp_id not between", value1, value2, "attEmpId");
            return (Criteria) this;
        }

        public Criteria andAttStatusIsNull() {
            addCriterion("att_status is null");
            return (Criteria) this;
        }

        public Criteria andAttStatusIsNotNull() {
            addCriterion("att_status is not null");
            return (Criteria) this;
        }

        public Criteria andAttStatusEqualTo(Integer value) {
            addCriterion("att_status =", value, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusNotEqualTo(Integer value) {
            addCriterion("att_status <>", value, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusGreaterThan(Integer value) {
            addCriterion("att_status >", value, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("att_status >=", value, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusLessThan(Integer value) {
            addCriterion("att_status <", value, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusLessThanOrEqualTo(Integer value) {
            addCriterion("att_status <=", value, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusIn(List<Integer> values) {
            addCriterion("att_status in", values, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusNotIn(List<Integer> values) {
            addCriterion("att_status not in", values, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusBetween(Integer value1, Integer value2) {
            addCriterion("att_status between", value1, value2, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("att_status not between", value1, value2, "attStatus");
            return (Criteria) this;
        }

        public Criteria andAttPlaceIsNull() {
            addCriterion("att_place is null");
            return (Criteria) this;
        }

        public Criteria andAttPlaceIsNotNull() {
            addCriterion("att_place is not null");
            return (Criteria) this;
        }

        public Criteria andAttPlaceEqualTo(String value) {
            addCriterion("att_place =", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceNotEqualTo(String value) {
            addCriterion("att_place <>", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceGreaterThan(String value) {
            addCriterion("att_place >", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("att_place >=", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceLessThan(String value) {
            addCriterion("att_place <", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceLessThanOrEqualTo(String value) {
            addCriterion("att_place <=", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceLike(String value) {
            addCriterion("att_place like", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceNotLike(String value) {
            addCriterion("att_place not like", value, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceIn(List<String> values) {
            addCriterion("att_place in", values, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceNotIn(List<String> values) {
            addCriterion("att_place not in", values, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceBetween(String value1, String value2) {
            addCriterion("att_place between", value1, value2, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttPlaceNotBetween(String value1, String value2) {
            addCriterion("att_place not between", value1, value2, "attPlace");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeIsNull() {
            addCriterion("att_datetime is null");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeIsNotNull() {
            addCriterion("att_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeEqualTo(Date value) {
            addCriterion("att_datetime =", value, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeNotEqualTo(Date value) {
            addCriterion("att_datetime <>", value, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeGreaterThan(Date value) {
            addCriterion("att_datetime >", value, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("att_datetime >=", value, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeLessThan(Date value) {
            addCriterion("att_datetime <", value, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("att_datetime <=", value, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeIn(List<Date> values) {
            addCriterion("att_datetime in", values, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeNotIn(List<Date> values) {
            addCriterion("att_datetime not in", values, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeBetween(Date value1, Date value2) {
            addCriterion("att_datetime between", value1, value2, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("att_datetime not between", value1, value2, "attDatetime");
            return (Criteria) this;
        }

        public Criteria andAttBak1IsNull() {
            addCriterion("att_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andAttBak1IsNotNull() {
            addCriterion("att_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andAttBak1EqualTo(String value) {
            addCriterion("att_bak1 =", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1NotEqualTo(String value) {
            addCriterion("att_bak1 <>", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1GreaterThan(String value) {
            addCriterion("att_bak1 >", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1GreaterThanOrEqualTo(String value) {
            addCriterion("att_bak1 >=", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1LessThan(String value) {
            addCriterion("att_bak1 <", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1LessThanOrEqualTo(String value) {
            addCriterion("att_bak1 <=", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1Like(String value) {
            addCriterion("att_bak1 like", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1NotLike(String value) {
            addCriterion("att_bak1 not like", value, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1In(List<String> values) {
            addCriterion("att_bak1 in", values, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1NotIn(List<String> values) {
            addCriterion("att_bak1 not in", values, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1Between(String value1, String value2) {
            addCriterion("att_bak1 between", value1, value2, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak1NotBetween(String value1, String value2) {
            addCriterion("att_bak1 not between", value1, value2, "attBak1");
            return (Criteria) this;
        }

        public Criteria andAttBak2IsNull() {
            addCriterion("att_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andAttBak2IsNotNull() {
            addCriterion("att_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andAttBak2EqualTo(String value) {
            addCriterion("att_bak2 =", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2NotEqualTo(String value) {
            addCriterion("att_bak2 <>", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2GreaterThan(String value) {
            addCriterion("att_bak2 >", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2GreaterThanOrEqualTo(String value) {
            addCriterion("att_bak2 >=", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2LessThan(String value) {
            addCriterion("att_bak2 <", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2LessThanOrEqualTo(String value) {
            addCriterion("att_bak2 <=", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2Like(String value) {
            addCriterion("att_bak2 like", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2NotLike(String value) {
            addCriterion("att_bak2 not like", value, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2In(List<String> values) {
            addCriterion("att_bak2 in", values, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2NotIn(List<String> values) {
            addCriterion("att_bak2 not in", values, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2Between(String value1, String value2) {
            addCriterion("att_bak2 between", value1, value2, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak2NotBetween(String value1, String value2) {
            addCriterion("att_bak2 not between", value1, value2, "attBak2");
            return (Criteria) this;
        }

        public Criteria andAttBak3IsNull() {
            addCriterion("att_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andAttBak3IsNotNull() {
            addCriterion("att_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andAttBak3EqualTo(String value) {
            addCriterion("att_bak3 =", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3NotEqualTo(String value) {
            addCriterion("att_bak3 <>", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3GreaterThan(String value) {
            addCriterion("att_bak3 >", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3GreaterThanOrEqualTo(String value) {
            addCriterion("att_bak3 >=", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3LessThan(String value) {
            addCriterion("att_bak3 <", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3LessThanOrEqualTo(String value) {
            addCriterion("att_bak3 <=", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3Like(String value) {
            addCriterion("att_bak3 like", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3NotLike(String value) {
            addCriterion("att_bak3 not like", value, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3In(List<String> values) {
            addCriterion("att_bak3 in", values, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3NotIn(List<String> values) {
            addCriterion("att_bak3 not in", values, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3Between(String value1, String value2) {
            addCriterion("att_bak3 between", value1, value2, "attBak3");
            return (Criteria) this;
        }

        public Criteria andAttBak3NotBetween(String value1, String value2) {
            addCriterion("att_bak3 not between", value1, value2, "attBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}